import request from '@/utils/request'

// 查询特种设备操作列表
export function listSpecialequipment(query) {
  return request({
    url: '/system/specialequipment/list',
    method: 'get',
    params: query
  })
}

// 查询特种设备操作详细
export function getSpecialequipment(certificateId) {
  return request({
    url: '/system/specialequipment/' + certificateId,
    method: 'get'
  })
}

// 新增特种设备操作
export function addSpecialequipment(data) {
  return request({
    url: '/system/specialequipment',
    method: 'post',
    data: data
  })
}

// 修改特种设备操作
export function updateSpecialequipment(data) {
  return request({
    url: '/system/specialequipment',
    method: 'put',
    data: data
  })
}

// 删除特种设备操作
export function delSpecialequipment(certificateId) {
  return request({
    url: '/system/specialequipment/' + certificateId,
    method: 'delete'
  })
}
